package com.dmtt.web.mapper;

import com.dmtt.web.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CarStatusMapper {

    List<AgvList> agvList(@Param("agvName")String agvName);

    void save(AgvSaveStatus agvSaveStatus);

    AgvSaveStatus currStatus(@Param("agvName")String agvName);

    void updateStatus(@Param("startTime") String startTime, @Param("agvName") String agvName,@Param("point") Integer point ,@Param("jobName") String jobName);

    void updateAgvStatus(@Param("status") Integer status, @Param("agvName") String agvName);

    List<OldPoint> oldCar(@Param("agvName") String agvName);

    void updateAgvPoint(@Param("point") Integer point, @Param("agvName") String agvName);

    void updateElectric(@Param("electric") Integer electric, @Param("agvName") String agvName);

    void saveOld(OldPoint oldPoint);

    List<OldPoint> agvStatus();

    OldPoint traffic(@Param("agvName") String agvName);

    PointInfo pointInfo(@Param("point") Integer point,@Param("jobName") String jobName);

    void updateJobStatus(@Param("agvName") String agvName, @Param("jobStatus") int jobStatus);

    long findJobId(@Param("agvName") String agvName);

    void updateJobTime(@Param("flag") long flag, @Param("startTime") String startTime,@Param("state") int state);

    void deleteStatisticeTemp();


    Integer intFalg(@Param("time") String time);
}
